Add link to home page on swagger ui#12601
Conversation
Signed-off-by: a1012112796 <1012112796@qq.com>
|
You could go back via webbrowser's button. |
This comment has been minimized.
This comment has been minimized.
Codecov Report
@@ Coverage Diff @@
## master #12601 +/- ##
==========================================
- Coverage 43.43% 43.41% -0.03%
==========================================
Files 645 645
Lines 71288 71288
==========================================
- Hits 30967 30948 -19
- Misses 35309 35321 +12
- Partials 5012 5019 +7
Continue to review full report at Codecov.
|
|
Please cherry-pick silverwind@7f9d52e. |
|
@silverwind Looks good to me, Thanks |
|
Hmm it's not impossible but not a simple implementation either. We can't be certain that a browser sends a referrer header (some don't in private mode) so we'd need to enumerate the browser history entries and find the first one that matches the origin but not the swagger page. Probably too much work and could be prone to break so this is LGTM. |
|
🚀 |


As title. I think it's useful. After view api documentation, maybe you will want to return to the home page.
example view:
